package cn.face.sdk;

public class FaceService
{
  static FaceService service = null;

  public FaceService() {
    FaceCommon.loadLibrarys();
  }

  public static FaceService getInstance()
  {
    if (service == null) {
      service = new FaceService();
    }
    return service;
  }

  public static native int cwInitSDKService(String paramString1, String paramString2, String paramString3, int paramInt1, int paramInt2, int paramInt3);

  public static native int cwCloseSDKService();

  public static native int cwFaceServiceDet(byte[] paramArrayOfByte1, int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte2, int paramInt4);

  public static native int cwFaceServiceGetFeaLength();

  public static native int cwFaceServiceGetFeature(byte[] paramArrayOfByte1, int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte2);

  public static native float cwFaceVerify(byte[] paramArrayOfByte1, int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte2, int paramInt4, int paramInt5, int paramInt6);

  public static native int cwRegistFace(String paramString, byte[] paramArrayOfByte, int paramInt1, int paramInt2, int paramInt3);

  public static native int cwRegistFeature(String paramString, byte[] paramArrayOfByte);

  public static native int cwUnRegistFace(String paramString);

  public static native int cwSearchFace(byte[] paramArrayOfByte1, int paramInt1, int paramInt2, int paramInt3, int paramInt4, byte[] paramArrayOfByte2, int paramInt5);
}